package cn.edu.shou.lab.service;

import cn.edu.shou.lab.config.converters.BackResult;
import cn.edu.shou.lab.config.query.Retrieval;
import cn.edu.shou.lab.config.query.Term;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface CohesionServiceI {

    BackResult executeSaveOrUpdate(String dataTable, List<Map<String, Object>> beans);

    BackResult executeDelete(String dataTable, List<String> id);

    List<Map<String, Object>> executeQuery(String dataTable, List<Retrieval> bean, Pageable pageable);

    List<Map<String, Object>> executeQuery(String dataTable, Term term, Pageable pageable);

    Map<String, Object> getCount(String dataTable, Term term);

}
